package com.ruoyi.project.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * 风险类别对象 risk_type
 * 
 * @author liboyu
 * @date 2024-05-28
 */
public class RiskType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 风险类别主键 */
    private Long risktypeId;

    /** 风险类别名称 */
    @NotBlank(message ="编号不能为空")
    @Length(min = 0, max = 20, message = "风险类别名称不能超过50个字符")
    @Excel(name = "风险类别名称")
    private String risktypeName;

    public void setRisktypeId(Long risktypeId) 
    {
        this.risktypeId = risktypeId;
    }

    public Long getRisktypeId() 
    {
        return risktypeId;
    }
    public void setRisktypeName(String risktypeName) 
    {
        this.risktypeName = risktypeName;
    }

    public String getRisktypeName() 
    {
        return risktypeName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("risktypeId", getRisktypeId())
            .append("risktypeName", getRisktypeName())
            .toString();
    }
}
